<h1>Listing videos</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Path</th>
    <th>Lenght</th>
    <th>Description</th>
    <th>Event</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @videos.each do |video| %>
  <tr>
    <td><%= video.title %></td>
    <td><%= video.path %></td>
    <td><%= video.lenght %></td>
    <td><%= video.description %></td>
    <td><%= video.event_id %></td>
    <td><%= link_to 'Show', video %></td>
    <td><%= link_to 'Edit', edit_video_path(video) %></td>
    <td><%= link_to 'Destroy', video, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Video', new_video_path %>
